package com.gitee.cnlongs.cnlongmq.server.threads.election;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.gitee.cnlongdb.server.connect.LongDbConnect;

/**
 * 系统名称：SequeueCaptainElectionThread
 * 模块名称：
 * 模块描述：开启【队列队长】选举机制
 * 功能列表：
 * 模块作者：zouyong
 * 开发时间：2019年8月1日 下午3:46:05
 * 模块路径：com.gitee.cnlongs.cnlongmq.server.threads.election.SequeueCaptainElectionThread
 */
public class SequeueCaptainElectionThread extends Thread {

	private static final Logger logger = (Logger) LoggerFactory.getLogger(SequeueCaptainElectionThread.class);
	
	private LongDbConnect connect;
	
	public SequeueCaptainElectionThread(LongDbConnect connect) {
		this.connect = connect;
	}
	
	@Override
	public void run() {
		try {
			// 各成员监听【队长】的状态，如果队长应用异常，则从备用队列中启用新的队长
			
		}
		catch(Exception e) {
			logger.error(e.getMessage());
		}
	}
	
}
